MonobjcMonobjc Documented Class Library
GetBytes Method (buffer)
NamespacesMonobjc.FoundationNSDataGetBytes(IntPtr)

Copies a data object’s contents into a given buffer. (Deprecated in Mac OS X v10.6. This method is unsafe because it could potentially cause buffer overruns. You should use getBytes:length: or getBytes:range: instead.)

Original signature is '- (void)getBytes:(void *)buffer'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.6. This method is unsafe because it could potentially cause buffer overruns. You should use getBytes:length: or getBytes:range: instead.")]
public virtual void GetBytes(
	IntPtr buffer
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. This method is unsafe because it could potentially cause buffer overruns. You should use getBytes:length: or getBytes:range: instead.")> _
Public Overridable Sub GetBytes ( _
	buffer As IntPtr _
)
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. This method is unsafe because it could potentially cause buffer overruns. You should use getBytes:length: or getBytes:range: instead.")]
public:
virtual void GetBytes(
	IntPtr buffer
)
Parameters
buffer (IntPtr)
A buffer into which to copy the receiver's data. The buffer must be at least length bytes.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)