specifications

.NET 4.5 MethodBuilder.SetMethodBody

﹥>﹥吖頭↗ 提交于 2019-12-04 10:02:12
In the newest version of the .NET framework, version 4.5, the MethodBuilder class has a method called SetMethodBody that I believe is exactly what I'm looking at as an alternative to using ILGenerator (which is annoying and limited in odd ways). The documentation can be found here , although since .NET 4.5 is not out yet, it is not fully documented. I can supply all but two of the arguments, but the rest I will need help with. The first that I don't understand is byte[] localSignature , the third argument. MSDN states that it is "An array of bytes that contain the serialized local variable

Java: extending a class and implementing an interface that have the same method

血红的双手。 提交于 2019-12-04 08:54:22
问题 Probably the following cannot be done (I am getting a compilation error: "The inherited method A.doSomthing(int) cannot hide the public abstract method in B"): public class A { int doSomthing(int x) { return x; } } public interface B { int doSomthing(int x); } public class C extends A implements B { //trying to override doSomthing... int doSomthing(int x) { return doSomthingElse(x); } } Assuming I am allowed to change neither A nor B, my question is can I somehow define C in such a way that

ONVIF : How to form the device web service address from the IP address of an NVT

元气小坏坏 提交于 2019-12-04 08:31:18
My question is about the ONVIF specification. http://www.onvif.org/imwp/download.asp?ContentID=18006 In section 5.10, it says : A service is a collection of related ports. This specification does not mandate any service naming principles. Lets say that I have the IP address of an NVT (Network Video Transmitter like an IP camera for example), how do I form the address of the device management web service? This service is the entry point of the whole system. Thank you. Şafak According to the official document (section 5.1.1), you can access the service at http://<IP address>/onvif/device_service

Microsoft's CodeView format specs

微笑、不失礼 提交于 2019-12-04 07:36:01
I've been looking for a Microsoft document from the 1990's called CodeView Symbolic Debug Information Specification . It's referenced by Microsoft in their PE/COFF spec . Information about this document is sparse, and every lead I come across ends in a 404. Unfortunately I don't have any old MSDN CD's, which seemed to end the search for a few people. Does anyone have a copy, or know where I could find any related specs? The one Matt Pietrek linked to, but which is not available at the original address anymore. - Note that this is one of the official CodeView 4 specifications, it doesn't cover

explicit specialization of template class member function

狂风中的少年 提交于 2019-12-04 05:14:05
I have this : template<class T, class U> class A { template<size_t N> void BindValues(); } template<class T, class U> template<size_t N> inline void A<T, U>::BindValues() { conn->setValue<N-1>( std::get<N-1>(m_Tuple) ); BindValues<N-1>(conn); } template<class T, class U> template<> inline void A<T, U>::BindValues<1>() { conn->setValue<0>( std::get<0>(m_Tuple) ); } My Compile error is: invalid explicit specialization before '>' token enclosing class templates are not explicitly specialized template-id BindValues<1> for void A<T, U>::BindValues() does not match any template declaration

Why does JSON encode UTF-16 surrogate pairs instead of Unicode code points directly?

谁都会走 提交于 2019-12-04 04:19:42
问题 To escape a code point that is not in the Basic Multilingual Plane, the character is represented as a twelve-character sequence, encoding the UTF-16 surrogate pair. So for example, a string containing only the G clef character (U+1D11E) may be represented as "\uD834\uDD1E" . ECMA-404: The JSON Data Interchange Format I believe that there is no need to encode this character at all, so it could be represented directly as "𝄞" . However, should one wish to encode it, it must, per spec, be encoded

Why is there no “NULL reference” in C++?

一个人想着一个人 提交于 2019-12-04 03:58:40
I was reading the C++ FAQ - " 8.6 - When should I use references, and when should I use pointers? " and in particular this statement: Use references when you can, and pointers when you have to. ... The exception to the above is where a function's parameter or return value needs a "sentinel" reference — a reference that does not refer to an object. This is usually best done by returning/taking a pointer, and giving the NULL pointer this special significance (references must always alias objects, not a dereferenced NULL pointer). From what I've seen, the need for a "sentinel" reference is indeed

How to implement a JSR Specification

匆匆过客 提交于 2019-12-04 03:51:21
I'm considering implementing one or two JSR APIs. I have not yet read the entire specification (the plan is to read them as I code the implementation) but I am very familiar with them. I have read that the JSR process includes implementing a Test Compatibility Kit (TCK) for testing said JSR implementations. Before I start writing a bunch of unit tests to verify the correctness/completeness of my implementation I would really like to use this TCK but I have no idea if it is available for me. After downloading all files and googling around I could not find anything that could be defined as a TCK

What should getBoundingClientRect() on a transformed SVG element return?

谁说胖子不能爱 提交于 2019-12-04 03:07:01
Today I tested what happens when you use getBoundingClientRect() on an SVG element that has been rotated. Test: http://phrogz.net/svg/getBoundingClientRect-on-rotated-elements.html The result is that: Chrome, Safari, Opera, and IE appear to calculate the local (untransformed) bounding box of the element, and then return the client rect for that bounding box . This can result in a client rect larger than seems appropriate. Firefox, on the other hand, clips the client rect to fit the element itself. Which behavior is correct according to the specifications? For what it's worth, I prefer the

How to identify whether an Excel file conforms to Excel 95 or Excel 97 specifications?

不问归期 提交于 2019-12-04 02:31:40
How to identify where the Excel file use Excel 95 or Excel 97 specifications? i.e., which version of BIFF they uses. You can find the necessary information in the MICROSOFT OFFICE EXCEL 97-2007 BINARY FILE FORMAT SPECIFICATION available from Microsoft. See page 11 for the following explanation: BIFF Microsoft Office Excel version --------------------------------------------------- BIFF5 Microsoft Excel version 5.0 (XL5) BIFF7 Microsoft Excel 95 (XL7) (also called Microsoft Excel version 7) BIFF8 Microsoft Excel 97 (XL8), Microsoft Excel 2000 (XL9), Microsoft Excel 2002 (XL10), Microsoft Office